package com.whcoding.test.common;

import com.alibaba.fastjson.serializer.ValueFilter;
import lombok.Data;

/**
 * @author
 * @date 2023/4/07 10:38
 * @description 解决实体类转json字符串空字段被过滤
 */
@Data
public class JsonFilter implements ValueFilter {

    @Override
    public Object process(Object o, String s, Object v) {
        if (v == null) {
            return "";
        }
        return v;
    }
}
